home *** CD-ROM | disk | FTP | other *** search
Wrap
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <HTML><HEAD><TITLE>KDE 3</TITLE> <META content="MSHTML 6.00.2900.2722" name=GENERATOR><LINK title=default href="/standard.css" type=text/css rel=stylesheet><LINK title=default href="http://kde-cygwin.sourceforge.net/global.css" type=text/css rel=stylesheet> <META http-equiv=content-type content=text/html;charset=iso-8859-1> <META content="faq; kde; qt; cygwin; windows" name=keywords> <META content="Kde cygwin homepage" name=description> <META content="Microsoft FrontPage 4.0" name=GENERATOR> <META content=FrontPage.Editor.Document name=ProgId></HEAD> <BODY> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR id=header> <TD id=headerpath></TD> <TD id=headermenu colSpan=2> </TD></TR> <TR id=logo> <TD vAlign=top><A href="http://kde-cygwin.sourceforge.net/kde3/"><IMG height=79 alt="KDE Homepage" src="http://kde-cygwin.sourceforge.net/images/kde_logo.jpg" width=296 border=0></A></TD> <TD align=middle width="20%"><FONT size=5><B><NOBR>on Cygwin/XFree<NOBR></B></FONT></NOBR></TD> <TD align=middle width="30%"></TD></TR></TBODY></TABLE> <TABLE summary=""> <TBODY> <TR> <TD vAlign=top> <TABLE cellSpacing=2 width=120 colpadding="0" colspacing="0"> <TBODY> <TR> <TD class=navselected> </TD> <TD class=navselected>Main</TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/">Home</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/screenshots/">Screenshots</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/download/">Download</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/source/">Getting Source</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/faq/">FAQ</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/ml/">Mailing Lists and forums</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/contrib/">How to contribute</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/links/">Links</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://sourceforge.net/tracker/?group_id=27249&atid=389712">Bug tracking</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://sourceforge.net/projects/kde-cygwin/">SourceForge</A></TD></TR> <TR> <TD class=navtitle colSpan=2><B>Packages<B></B></B></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde3/index.php">KDE 3</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/qt3/index.php">QT 3 </A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/qt3-win32/index.php"><NOBR>Qt 3/Win Free</NOBR></A></TD></TR> <TR> <TD class=navleftnolink colSpan=2> </TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/packages/">Additional packages</A></TD></TR> <TR> <TD class=navtitle colSpan=2><B>Archive<B></B></B></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde2/">KDE 2</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde1/">KDE 1</A></TD></TR> <TR> <TD class=navleftnolink colSpan=2> </TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/qt2/">QT 2</A></TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/qt1/">QT 1</A></TD></TR> <TR> <TD class=navleftnolink colSpan=2> </TD></TR> <TR> <TD class=navunselected> </TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/qt2-win32/">QT 2/Win32</A></TD></TR></TBODY></TABLE></TD> <TD width=1 bgColor=#c0c0c0></TD> <TD vAlign=top> <TABLE> <TBODY> <TR> <TD width=130><B>KDE 3</B></TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde3/index.php">Overview</A></TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde3/requirements.php">Requirements</A></TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde3/screenshots.php">Screenshots</A></TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde3/installation.php">Installation</A></TD> <TD class=navunselected><A href="http://kde-cygwin.sourceforge.net/kde3/compiling.php">Compiling</A></TD> <TD class=navselected>FAQ</TD></TR></TBODY></TABLE> <P></P> <P>This frequently answered questions are collected from the kde-cygwin mailing list and the kde-cygwin related sourceforge foren. If you don't find an answer for your problem here, please take a look directly into the mailing list and/or the foren.</P> <P>Index</P> <H3></H3> <UL></UL> <H3>Configuration </H3> <UL> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#single_apps">I don't like to use the whole desktop, only single kde applications. How do I do that ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#copy_cygwin">How do I move/copy a cygwin-kde installation to another computer ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#printing">How do I configure Printing in kde ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#truetype">The default kde fonts looks very ugly - How could I use Windows True Type fonts ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#anti-aliasing">Does font anti-aliasing works ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#minimal_kde3">How do I run a minimal KDE 3 ? </A></LI></UL> <H3>Troubleshooting </H3> <UL> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#rebase">I get an error message "*** unable to remap ... to same address as parent" What could I do ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#rebaseall">Why must I run rebaseall after a clean install ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#lib_not_found">The cygwin window I used to kick off KDE is outputting that it can't load a library, is that normal? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#dcopserver_running">Why do I get the message "It looks like dcopserver is already running.." ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#dcop_auth">Why do I get the message "DCOPClient::attachInternal. Attach failed Authentication Rejected" ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#dcop_size">Why do I get the message "Error reading from /home/.../.DCOPserver_..._127.0.0.1_0, didn't read the expected .. bytes" ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#reserve">Why do I get the message "cygheap_fixup_in_child: Couldn't reserve ... bytes of space for cygwin's heap ..." ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#0xc000005">Why do I get the error message "The application failed to initialize properly (0xc0000005)..." when running applications I have self compiled ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#kcminit">With cygwin 1.5.5-1 starting the small KDE desktop works, but starting full KDE hangs - What could I do ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#win9x_env">After running startkde.bat under windows 9x I got the following messages: Out of environment space - What can I do ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#dll_a">I have installed the KDE3 devel setup package, but I cannot find any *.dll.a files in the kde's lib dir. What's going wrong ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#debug_kde3">How do I debug the KDE3 start procedure in case of problems ? </A> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#png12">I've got a message about a missing file 'cygpng12.dll' - What could I do ? </A></LI></UL> <H3>KDevelop </H3> <UL> <LI><A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#kdevelop_appwizard">I can't create a new project - what's going wrong ? </A></LI></UL> <UL></UL> <HR> <H3>Configuration </H3> <H2><A name=single_apps>I don't like to use the whole desktop, only single kde applications. How do I do that ? </A></H2>Running kde applications without the desktop requires running some basic application like shown below: <PRE class=shell>ipc-daemon2 & Xwin -multiwindow & kdeeinit --no-kded --nofork & </PRE>After that you can run any kde application <UL> <LI>starting kwrite <PRE class=shell>kwrite </PRE> <LI>starting kate <PRE class=shell>kwrite </PRE> <LI>starting kdevelop <PRE class=shell>kdevelop </PRE></LI></UL>You may save some starting time by using the following sequence: <PRE class=shell>kwrite --nofork & </PRE> <P>This prevents that kwrite forks itself into the background and release the shell, which is very time consuming. Instead it instructs the shell to run the application independing from the shell, which goes much faster. (I have measured 50% lower startup times for kicker) Please note, that the --nofork isn't supported by all applications, konqueroer for example does not switch itself into the background by default, so you have to start it with: <PRE class=shell>konqueror & </PRE> <H2><A name=copy_cygwin>How do I move/copy a cygwin-kde installation to another computer ? </A></H2>The regular procedure is splited into two parts. Please note that this will only work between WinNT,Win2K and WinXp, not between one of this and Wi n 9x. <OL> <LI>Copy the whole directory tree containing the cygwin (by default c:\cygwin) to the other computer. <LI>Export the cygwin related registry settings in a file say cygwin.reg, change the required path in the export file to the new locations and apply the registry settings on the new computer by double clicking on the file. <P>The relating registry key is located below HKEY_LOCAL_MACHINE\Software\Cygnus Solutions. </P></LI></OL> <H2><A name=printing>How do I configure Printing in kde ? </A></H2> <P>Printing support in kde-cygwin is currently performed with the ghostscript package. <UL> <LI>Install the ghostscript-x11 and cygutils package, if not already installed. <LI>Edit the file /opt/kde3/bin/cygprint and change the related variables for your settings. The possible values could be extracted from the <A href="http://www.cs.wisc.edu/~ghost/">ghostscript</A> documentation. <PRE class=shell># for network shares use "\\\\server\\share" PRINTER="lpt1:" PRINTER_TYPE=deskjet PAPER_SIZE=a4 </PRE> <LI>In the printing dialog, select "Print with external application" in the printing dialog and enter <B>cygprint</B> and click "Print" to perform the printing. <BR>In case of errors you may inspect the file /var/log/cygprint.log, which contains all output from the cygprint tool. </LI></UL> <P>An example of the used printing script is listed below: <PRE>$ cat >/opt/kde3/bin/cygprint #!/bin/sh PRINTER="\\\\server\\share" #PRINTER="lpt1:" PRINTER_TYPE=deskjet PAPER_SIZE=a4 LOG_FILE=/var/log/cygprint.log echo $0 $* >>$LOG_FILE if test -z "$1"; then echo "usage $0 <FILE>" exit 1 fi #$TMPFILE=$1 if test -n `echo $1 | grep "^/tmp"`; then TMPFILE=$1.$$ else TMPFILE=/tmp/$1.$$ fi GS_PARAMS="-q -sPAPERSIZE=$PAPER_SIZE -sDEVICE=$PRINTER_TYPE -sOutputFile=$TMPFILE -dNOPAUSE -dBATCH $1" echo "gs $GS_PARAMS" >>$LOG_FILE gs $GS_PARAMS >>$LOG_FILE 2>&1 # in case of errors if test "$?" != "0"; then exit $? fi if test -f $TMPFILE; then echo "/usr/bin/lpr -l -d $PRINTER $TMPFILE" >>$LOG_FILE /usr/bin/lpr -l -d $PRINTER $TMPFILE >>$LOG_FILE 2>&1 echo "rm $TMPFILE" >>$LOG_FILE rm $TMPFILE >>$LOG_FILE 2>&1 fi exit $? </PRE> <H2><A name=truetype>The default kde fonts looks very ugly - How could I use Windows True Type fonts ? </A></H2>Install the Windows True Type fonts with the KControl font installer module. <P>You should change your current cygwin user to root <PRE class=shell>(old) Habacker:unused_by_nt/2000/xp:11002:10545:....:/home/Habacker:/bin/bash </PRE><PRE class=shell>(new) Habacker:unused_by_nt/2000/xp:0:0:....:/home/Habacker:/bin/bash </PRE> <UL> <LI>Create a new directory <B>/usr/X11R6/lib/X11/fonts/truetype</B> if not existant from the bash shell: <PRE class=shell>mkdir /usr/X11R6/lib/X11/fonts/truetype </PRE> <LI>Run from kicker: System Administration->Font Installer or start <PRE class=shell>kcmshell system/kcmfontinst </PRE> <LI>Switch the view to the "extended mode", select the folder "truetype" and click "Add". <LI>Then go to the font directory of your windows installation, which may depend on your os type and cygwin mount path settings e.g. <PRE class=shell>/cygdrive/c/Windows/fonts or /cygdrive/c/WINNT/fonts or /c/Windows/fonts or /c/WINNT/fonts </PRE> <LI>select the desired fonts and select 'OK'. <LI>Then press "Apply" to add the selected fonts to you KDE installation. This step may need some time. Error messages while performing this step could be ignored. <LI>At last you can change KDE font settings with <PRE class=shell>kcmshell LookNFeel/fonts </PRE> <LI>If you are using <B>kdebase release 3.1.4-1 or lower</B> the newly created font path isn't available for X in further X session, which could be fixed by a little shell script inserted into /opt/kde3/bin/startkde. How to apply: <P>Search for the following code lines in /opt/kde3/bin/startkde <PRE class=shell># # Check first for current resolution/depth # export X=`xdpyinfo |grep dimensions:|cut -d " " -f 7|cut -d "x" -f 1` export Y=`xdpyinfo |grep dimensions:|cut -d " " -f 7|cut -d "x" -f 2` export D=`xdpyinfo |awk '/depths/ {print $NF}'` [ -e "$HOME/.skel/kdebase" ] || INITIAL="--force" </PRE>and append the following lines: <PRE class=shell># # add truetype font dir to font list exists (kcminit does not do this) # if test -d "/usr/X11R6/lib/X11/fonts/truetype"; then xset +fp /usr/X11R6/lib/X11/fonts/truetype fi </PRE> <LI>Now you are ready to use the Windows true type fonts. We have good very experiences on Windows XP with the Verdana or Tohama fonts. </LI></UL> <H2><A name=anti-aliasing>Does font anti-aliasing works ? </A></H2>Currently no, but a good workaround is to use the Windows true type fonts. See topic <A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#truetype">The default kde fonts looks very ugly - How could I use Windows True Type fonts ?</A> . <H2><A name=minimal_kde3>How do I run a minimal KDE 3 ? </A></H2>After you have installed the latest qt and KDE release you can start a minimal KDE 3 with the following commands (for KDE >= 3.1.4): <PRE class=shell>export SHELL=/bin/bash ipc-daemon2 & XWin -multiwindow -clipboard & kdeinit +kcminit & kicker & (optional) ... & </PRE>No you can start any kde application from the bash shell by using the following command: <PRE class=shell><KDE app> & </PRE>where <KDE app>is the name of the requested kde application. <H3>Troubleshooting </H3> <H2><A name=rebase>I get an error message "*** unable to remap ... to same address as parent" What could I do ? </A></H2>This error indicates an dll loading problem while forking a cygwin process. This problem could be solved by using the <B>rebaseall</B> utility of the rebase package which is written by Jashon Tishler (application) and Ralf Habacker (rebasing related win32 imagehelp libary replacement for all cygwin supported platforms). <P>To fix this problem please install the rebase utility through the cygwin installer (if not already present), stop all cygwin processes but bash and run the following command (add -v if you like to get a detailed list of the performed actions): <PRE class=shell>$ rebaseall [-v] </PRE>This command searches all installed dll's and take care, that dll's does have uniq base addresses. <DIV class=notebox>Windows XP note:<BR>It may be required to restart your computer due to a problem with the windows dll cache. If some of your cygwin applications does not work as before rebasing, please restart. </DIV> <H2><A name=rebaseall>Why must I run rebaseall after a clean install ? </A></H2>This rebaseall command gives each cygwin related dll a uniq base address to ensure an ordered dll loading in a process memory area. <P>By default the linker gives all dll's the same base address (0x10000000), which could result in a "unable to remap" problem, when a cygwin process tries to fork a child process. <P>BTW: I have heard, that this rebasing task is also done by other windows installer, but they don't tell about this. <H2><A name=lib_not_found>The cygwin window I used to kick off KDE is outputting that it can't load a library, is that normal? </A></H2>kdeinit, kde's application launcher process starts application by forking itself and loading the required application located in a shared library to reduce memory consumption and startup time. <P>If kdeinit does not find such a dll, it prints out the <B>informational message</B> "Could not load library! Trying exec....", then it tries to fork and exec the required application directly. <H2><A name=dcopserver_running>Why do I get the message "It looks like dcopserver is already running.." ? </A></H2> <P>Sometime users experienced the following message: <PRE class=shell>--------------------------------- It looks like dcopserver is already running. If you are sure that it is not already running, remove /home/de067018/.DCOPserver_minniti_127.0.0.1_0 and start dcopserver again. --------------------------------- </PRE> <P>This error indicates that the dcopserver is still running probably from a previous KDE session. <P>This could happen if one have started KDE before and the session is broken by unusually user intervention lilke killing the xserver or an internal failure (remember KDE is of beta quality). <P>In mostly cases you can fix this by starting KDE again. If this does not help open the task manager and kill the <B>dcopserver</B> process. <H2><A name=dcop_auth>Why do I get the message "DCOPClient::attachInternal. Attach failed Authentication Rejected" ? </A></H2> <P>This may be file access problem in your home directory. See the relating thread in the kde-cygwin mailing list <A href="http://lists.kde.org/?l=kde-cygwin&m=106685880811768&w=2">AW: DCOPClient errors in WinXP</A> for further informations. <H2><A name=dcop_size>Why do I get the message "Error reading from /home/.../.DCOPserver_..._127.0.0.1_0, didn't read the expected .. bytes" ? </A></H2> <P>This error message is caused by a text mounted entry in the cygwin mount table. Make sure, that the root dir is mounted in bin mode.See the following example, which shows a text mounted root path: <PRE class=shell>$ mount c:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) c:\cygwin\opt\kde3 on /opt/kde3 type system (binmode) c:\cygwin\bin on /usr/bin type system (binmode) c:\cygwin\lib on /usr/lib type system (binmode) c:\cygwin on / type system (textmode) ^^^^^^^^ </PRE> <P>Change the mount mode to binary with the following commands: <PRE class=shell>$ cd c:/cygwin/bin (or wathever your cygwin root dir is) $ umount -s / $ mount -s -b c:/cygwin / </PRE> <H2><A name=reserve>Why do I get the message "cygheap_fixup_in_child: Couldn't reserve ... bytes of space for cygwin's heap ..." ? </A></H2>If you got an error message similar to: <PRE class=shell> ... cygheap_fixup_in_child: Couldn't reserve 9891792 bytes of space for cygwin's heap (0x61810000 < 0x6C0000 >) in child, Win32 error 487 c:\cygwin\....exe (3684): *** m.AllocationBase 0x0, m.BaseAddress 0x61810000, m.RegionSize 0x1B0000, m.State 0x10000 </PRE>this indicates mostly a rebase problem. Cygwin tries to reserve an amount of memory on top of the address area of the cygwin1.dll. If this area is already allocated by another dll or shared memory segment, the allocation fails and the above mentioned error is raised. <BR>You can fix this problem by rebasing all cygwin related dll's with a base address below the cygwin1.dll itself. <PRE class=shell>rebaseall -b 0x61000000 </PRE> <H2><A name=0xc000005>Why do I get the error message "The application failed to initialize properly (0xc0000005)..." when running applications I have self compiled ? </A></H2> <P>This error indicates a problem of the ld auto-import support and newer gcc releases using readonly variables. To avoid this problem you should uses a recent qt/cygwin releases (>3.3.3), which contains all required support or add the required stuff by hand: <UL> <LI>download the <A href="http://cvs.sourceforge.net/viewcvs.py/kde-cygwin/qt-3/mkspecs/cygwin-g++/Attic/i386pe.x-no-rdata?rev=1.1.2.1&only_with_tag=QT_WIN32_3_3_BRANCH&view=log">specific ld linker script </A>and either <LI>add the following switches to your link line: <PRE class=shell>... -Wl,--enable-runtime-pseudo-reloc -Wl,--script,< YOUR_PATH >/i386pe.x-no-rdata </PRE> <LI>or use the following configure line <PRE class=shell><B>LDFLAGS="-Wl,--enable-runtime-pseudo-reloc -Wl,--script,< YOUR_PATH >/i386pe.x-no-rdata"</B> .. configure ... </PRE></LI></UL> <H2><A name=kcminit>With cygwin 1.5.5-1 starting the small KDE desktop works, but starting full KDE hangs - What could I do ? </A></H2> <P>Is seems that cygwin 1.5.5-1 contains a bug, which lets kcminit hangs. Currently three workarounds are known: <OL> <LI>Remove the term '+kcminit' from /opt/kde3/startkde.bat or /opt/kde3/bin/startkde if you are starting kde from a bash shell. Please note that this disables special keyboard layout settings, which is no problem is you are using the standard keyboard. <LI>downgrade to cygwin 1.5.4-1, which does not contain this error. <LI>install a cygwin snapshot from <A href="http://www.cygwin.com/">http://www.cygwin.com/</A> <LI>wait for the next cygwin upgrade </LI></OL> <H2><A name=win9x_env>After running startkde.bat under windows 9x I got the following messages: Out of environment space - What can I do ? </A></H2>The W9x dos shell default environment space is to small for kde. To extend see <A href="http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q230/2/05.ASP&NoWebContent=1">Microsoft Knowledge Base Article - 230205</A>. <H2><A name=dll_a>I have installed the KDE3 devel setup package, but I cannot find any *.dll.a files in the kde's lib dir. What's going wrong ? </A></H2> <P>The *.dll.a files are so-called "import libraries" for the linker and are symbolic links to the related dll. It seems that the inno setup compiler is not able to deal with symbolic links. I will see how this could be fixed in further releases. <P>A workaround is to use the following sh script, which recreates the necessary links. Enter /opt/kde3/bin before running it. <PRE class=shell>for i in `ls *.dll`; do cd ../lib; j=`echo $i | sed \ "s,-[0-9.-]*dll,.dll,g;s,cyg,lib,g"`; ln -fs ../bin/$i $j.a; cd ../bin ; \ done </PRE> <H2><A name=debug_kde3>How do I debug the KDE3 start procedure in case of problems ? </A></H2>Requirements: <OL> <LI>Please make sure, you have a full working cygwin and xfree installation <LI>Don't use rebased or rebinded kde dll's or applications, because this could result in segfault problems. If you not know anything about this terms, you can skip the next sentence. If you have rebased or rebinded <B>reinstall</B> the KDE packages. </LI></OL> <P></P> <P>Lets start: </P> <OL> <LI>enter a bash shell and set kde related environment <PRE class=shell>export KDEDIR=/opt/kde3.4 export QTDIR=/opt/qt/3.3 export KDEHOME=/opt/kde3.4/home export PATH=$KDEDIR/bin:$KDEDIR/lib:$QTDIR/bin:/usr/X11R6/bin:$PATH export LTDL_LIBRARY_PATH=$KDEDIR/lib:$KDEDIR/bin:/usr/X11R6/bin export LD_LIBRARY_PATH=$KDEDIR/lib:$KDEDIR/bin:/usr/X11R6/bin export DISPLAY=127.0.0.1:0 </PRE> <LI>start xserver <PRE class=shell>$ XWin -nowinkill -noreset & </PRE> <LI>try to start dcopserver <PRE class=shell>$ dcopserver </PRE> <P>afterwards the following lines should be printed (note that the printed pid numbers <I>anonymous-xxxx</I> are samples and may be different for you): </P><PRE class=shell>_KDE_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root DCOP: register 'anonymous-xxxx' -> number of clients is now 1 DCOPServer up and running. DCOP: unregister 'anonymous-xxx' </PRE> <P>additional the following files should be available (part of the names may be different)</P><PRE class=shell>$ ls /tmp/.ICE-unix/ -l total 0 srwxrwxrwx 1 1002 Kein 51 Jun 14 11:15 dcop2256-1024046152 </PRE><PRE class=shell><SMALL> $ ls al ~/.DCOP* lrwxrwxrwx 1 1002 Kein 191 Jun 14 11:33 .DCOPserver_BRAMSCHE -> /home/habacker/.DCOPserver_BRAMSCHE_BRAMSCHE-0 -rwxrwxrwx 1 1002 Kein 55 Jun 14 11:33 .DCOPserver_BRAMSCHE_BRAMSCHE-0 </SMALL></PRE>Additional possible errors could be: <UL> <LI> <A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#dcopserver_running">Why do I get the message "It looks like dcopserver is already running.." ?</A> <LI> <A href="http://kde-cygwin.sourceforge.net/kde3/faq.php#dcop_auth">Why do I get the message "DCOPClient::attachInternal. Attach failed Authentication Rejected" ?</A> </LI></UL> <LI>try to start kdeinit <PRE class=shell>$ kdeinit --no-dcop --no-kded </PRE> <P>then the following lines should be printed (note that xxxx and <HOSTNAME>are placeholders):</P><PRE class=shell>kdeinit: launch -> klauncher (null) kdeinit: Launched KLauncher, pid = xxxx result = 0 DCOP: register 'klauncher' -> number of clients is now 1 DCOP: unregister 'klauncher' DCOP: register 'klauncher' -> number of clients is now 1 kdecore (KSocket): Trying to listen on Unix /home/xxxxx/.kde2/socket- <HOSTNAME>/klauncherjjHrMb.slave-socket DCOP: register 'anonymous-xxxx' -> number of clients is now 2 kdecore (KSocket): Socket bound: 7 DCOP: new daemon klauncher DCOP: unregister 'anonymous-xxxx' kdeinit: opened connection to <HOSTNAME>:0.0 </PRE> <LI> <P>try to start kded </P><PRE class=shell>$ kded </PRE> <P>then the following lines should be printed </P><PRE class=shell>DCOP: register 'kded' -> number of clients is now 1 DCOP: unregister 'kded' DCOP: register 'kded' -> number of clients is now 1 DCOP: register 'anonymous-2180' -> number of clients is now 2 kded: Does not exist! (/home/xxx/.kde3/share/servicetypes/) kded: Does not exist! (/home/xxx/.kde3/share/mimelnk/) kded: Does not exist! (/home/xxx/.kde3/share/services/) DCOP: register 'anonymous-2132' -> number of clients is now 3 kio (KLauncher): KLauncher: Got kdeinit_exec_wait('kbuildsycoca', ...) kdeinit: Got EXEC_NEW 'kbuildsycoca' from launcher. kdeinit: launch -> kbuildsycoca --incremental library=kbuildsycoca.la: No file names kbuildsycoca.la found in paths. Could not load library! Trying exec.... kio (KLauncher): kbuildsycoca (pid 2064) up and running. DCOP: register 'kbuildsycoca' -> number of clients is now 4 kbuildsycoca: Recreating ksycoca file kbuildsycoca: Database is up to date kdeinit: PID 2064 terminated. DCOP: unregister 'kbuildsycoca' DCOP: unregister 'anonymous-2132' kio (KLauncher): KLauncher: Got kdeinit_exec_wait('kconf_update', ...) kdeinit: Got EXEC_NEW 'kconf_update' from launcher. kdeinit: launch -> kconf_update ☺ kio (KLauncher): kconf_update (pid 2736) up and running. kdeinit: PID 2736 terminated. DCOP: new daemon kded </PRE> <LI>start kwin <PRE class=shell>$ kwin & </PRE> <P>then the following lines should be printed (note that the printed pid numbers <I>anonymous-xxxx</I> are samples and may be different for you): </P><PRE class=shell>DCOP: register 'anonymous-1380' -> number of clients is now 1 kio (KLauncher): KLauncher: Got start_service_by_desktop_name('knotify', ...) kdeinit: Got EXEC_NEW 'knotify' from launcher. kdeinit: launch -> knotify ☺ kio (KLauncher): knotify (pid 2056) up and running. DCOP: register 'knotify' -> number of clients is now 2 DCOP: register 'anonymous-2056' -> number of clients is now 3 DCOP: unregister 'anonymous-1380' DCOP: register 'anonymous-1380' -> number of clients is now 3 DCOP: unregister 'anonymous-1380' DCOP: register 'kwin' -> number of clients is now 3 DCOP: new daemon knotify DCOP: unregister 'anonymous-2056' kdeinit: PID 2056 terminated. </PRE></LI></OL> <P class=question>If any of this messages are not printed or looks different, than you have a problem with this step, for which you should search the mailing lists or the foren. </P> <H2><A name=png12>I've got a message about a missing file 'cygpng12.dll' - What could I do ? </A></H2> <P>That means you haven't installed one of the needed cygwin base packages. You should start again the cygwin installer and install the <B>libpng12</B> packages. <P>General hint: If you are missing a file and don't know to which package it belongs, enter it's name on <A href="http://cygwin.com/packages/">http://cygwin.com/packages/</A>. Then it prints out the package(s) where this file belongs. <H3>KDevelop </H3> <H2><A name=kdevelop_appwizard>I can't create a new project - what's going wrong ? </A></H2>This could be a packaging issue. Try the following command (requires an installed perl package) after installation of kdevelop: <PRE class=shell>cd /opt/kde3/share/apps/kdevappwizard/ for i in ` grep -sHr kdevelop-3.0.0-r8 * | sed 's,:#!.*,,g'` ; do echo $i; \ perl -pi -e "s,/var/tmp/portage/kdevelop-3.0.0-r8/image/,,g" $i; done </PRE> <TABLE width="100%"> <TBODY> <TR> <TD colSpan=2> </TD></TR> <TR> <TD align=left width="50%">Prev:<A href="http://kde-cygwin.sourceforge.net/kde3/compiling.php">Compiling</A></TD> <TD align=right width="50%">Next:<A href="http://kde-cygwin.sourceforge.net/kde3/index.php">Overview</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE> <HR> <TABLE width="100%" summary="" border=0> <TBODY> <TR> <TD width="21%">Hosted by <A href="http://sourceforge.net/"><IMG alt=SourceForge src="http://sourceforge.net/sflogo.php?group_id=27249&type=1" align=middle border=0></A></TD> <TD><A href="http://www.webcounter.goweb.de/"><IMG alt="GOWEBCounter by INLINE" src="http://webcounter.goweb.de/99241.GIF" border=0></A> visitors</TD></TR></TBODY></TABLE></BODY></HTML>